package com.orange.cepappmanager.client.rest;

import java.net.HttpURLConnection;
import java.util.logging.Logger;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.orange.cepappmanager.tools.ServerUtilities;
import com.orange.cepappmanager.tools.XMLUtilies;

@Path("/event/")
public class EventService {
	/**
	 * Log
	 */
	private static final Logger log = Logger.getLogger(PhoneService.class
			.getName());
	HttpURLConnection conn = null;
	ServerUtilities.Method method;
	StringBuilder bodyBuilder = new StringBuilder();
	String body = bodyBuilder.toString();
	byte[] bytes = body.getBytes();

	/**
	 * @return phones
	 */
	@GET
	@Produces(MediaType.TEXT_XML)
	@Path("/eventType/")
	public String eventType() {
		log.info("event type xml");
		String eventType = XMLUtilies
				.convertXMLFileToString("war/resources/Ngsi9_10_dataStructure_v07.xsd");
		return eventType;
	}
}
